Filename | (eval 1135)[/usr/lib/x86_64-linux-gnu/perl5/5.20/Template/Document.pm:78] |
Statements | Executed 10 statements in 12µs |
Eval Invoked At | /usr/lib/x86_64-linux-gnu/perl5/5.20/Template/Document.pm line 78 |
Sibling evals | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 11µs | 12µs | __ANON__[:16] | Template::Document::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | # spent 12µs (11+1) within Template::Document::__ANON__[(eval 1135)[/usr/lib/x86_64-linux-gnu/perl5/5.20/Template/Document.pm:78]:16] which was called:
# once (11µs+1µs) by Template::Document::process at line 163 of Template/Document.pm | ||||
2 | 1 | 300ns | my $context = shift || die "template sub called without context\n"; | ||
3 | 1 | 1µs | 1 | 1µs | my $stash = $context->stash; # spent 1µs making 1 call to Template::Context::stash |
4 | 1 | 200ns | my $output = ''; | ||
5 | 1 | 100ns | my $_tt_error; | ||
6 | |||||
7 | 2 | 1µs | eval { BLOCK: { | ||
8 | 1 | 400ns | $output .= "<script type=\"text/javascript\">\n//<![CDATA[\n\$(document).ready(function(){\n jQuery.extend(jQuery.validator.messages, {\n required: _(\"This field is required.\"),\n remote: _(\"Please fix this field.\"),\n email: _(\"Please enter a valid email address.\"),\n url: _(\"Please enter a valid URL.\"),\n date: _(\"Please enter a valid date.\"),\n dateISO: _(\"Please enter a valid date (ISO).\"),\n number: _(\"Please enter a valid number.\"),\n digits: _(\"Please enter only digits.\"),\n equalTo: _(\"Please enter the same value again.\"),\n maxlength: \$.validator.format(_(\"Please enter no more than {0} characters.\")),\n minlength: \$.validator.format(_(\"Please enter at least {0} characters.\")),\n rangelength: \$.validator.format(_(\"Please enter a value between {0} and {1} characters long.\")),\n range: \$.validator.format(_(\"Please enter a value between {0} and {1}.\")),\n max: \$.validator.format(_(\"Please enter a value less than or equal to {0}.\")),\n min: \$.validator.format(_(\"Please enter a value greater than or equal to {0}.\"))\n });\n});\n//]]>\n</script>\n"; | ||
9 | } }; | ||||
10 | 1 | 100ns | if ($@) { | ||
11 | $_tt_error = $context->catch($@, \$output); | ||||
12 | die $_tt_error unless $_tt_error->type eq 'return'; | ||||
13 | } | ||||
14 | |||||
15 | 1 | 4µs | return $output; | ||
16 | } | ||||
17 | 1 | 4µs | |||
18 | ; |